package com.example.demo.service;

import com.example.demo.entity.User;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 人生若只如初见（Jeckie） on 2021/10/25 21:47
 */
@Service
public class IntroImpl implements Introduce{
    @Autowired
    private UserMapper mapper;
    public List<User> selectIntro(Long id) {
        List<User> users = new ArrayList<>();
        User user = mapper.selectById(id);
        users.add(user);
        return users;
    }
}
